/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.atomojo.sparql;

/**
 *
 * @author alex
 */
public class RelationalExpression extends Expression {

   public enum Operator {
      EQUALS("="),
      NOT_EQUALS("!=");
              
      private String value;
      Operator(String v)
      {
         value = v;
      }
      
      public String toString() {
         return value;
      }
              
   }
   
   Ref left;
   Ref right;
   Operator op;
   
   public RelationalExpression(Ref left,Operator op,Ref right)
   {
      this.left = left;
      this.op = op;
      this.right = right;
   }
   
   public Ref getLeftSide() {
      return left;
   }
   
   public Ref getRightSide() {
      return right;
   }
   
   public Operator getOperator() {
      return op;
   }
   
   public String toString() {
      return "("+left+op+right+")";
   }
   
}
